home *** CD-ROM | disk | FTP | other *** search
/ Freelog 121 / FreelogMagazineJuilletAout2014-No121.iso / Outils / Adobe-Air / adobe-air_13.exe / [0] / setup.swf / scripts / _winCloseButtonStyle.as < prev    next >
Text File  |  2014-03-27  |  1KB  |  43 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.styles.CSSStyleDeclaration;
  5.    import mx.styles.StyleManager;
  6.    
  7.    public class _winCloseButtonStyle
  8.    {
  9.       
  10.       private static var _embed_css_win_close_over_png_911983067:Class = _winCloseButtonStyle__embed_css_win_close_over_png_911983067;
  11.       
  12.       private static var _embed_css_win_close_down_png_916762023:Class = _winCloseButtonStyle__embed_css_win_close_down_png_916762023;
  13.       
  14.       private static var _embed_css_win_close_up_png_1189512633:Class = _winCloseButtonStyle__embed_css_win_close_up_png_1189512633;
  15.        
  16.       
  17.       public function _winCloseButtonStyle()
  18.       {
  19.          super();
  20.       }
  21.       
  22.       public static function init(param1:IFlexModuleFactory) : void
  23.       {
  24.          var fbs:IFlexModuleFactory = param1;
  25.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".winCloseButton");
  26.          if(!style)
  27.          {
  28.             style = new CSSStyleDeclaration();
  29.             StyleManager.setStyleDeclaration(".winCloseButton",style,false);
  30.          }
  31.          if(style.defaultFactory == null)
  32.          {
  33.             style.defaultFactory = function():void
  34.             {
  35.                this.upSkin = _embed_css_win_close_up_png_1189512633;
  36.                this.overSkin = _embed_css_win_close_over_png_911983067;
  37.                this.downSkin = _embed_css_win_close_down_png_916762023;
  38.             };
  39.          }
  40.       }
  41.    }
  42. }
  43.